package vooga.entities;



/**
 * @author Robert C. Duvall
 */
public class RoundRect extends vooga.entities.Entity
{
    public RoundRect (java.awt.geom.Point2D center,
                      java.awt.geom.Dimension2D size,
                      double arcSize)
    {
        this(center, size, arcSize, arcSize);
    }

    public RoundRect (java.awt.geom.Point2D center,
                      java.awt.geom.Dimension2D size,
                      double arcWidth, double arcHeight)
    {
        super(center, size,
              new java.awt.geom.RoundRectangle2D.Double(0, 0, 1, 1, arcWidth, arcHeight));
    }

    public RoundRect (java.awt.geom.Point2D center,
                      java.awt.geom.Dimension2D size,
                      java.awt.Color color,
                      double arcSize)
    {
        this(center, size, arcSize, arcSize);
        setColor(color);
    }

    public RoundRect (java.awt.geom.Point2D center,
                      java.awt.geom.Dimension2D size,
                      java.awt.Color color,
                      double arcWidth, double arcHeight)
    {
        this(center, size, arcWidth, arcHeight);
        setColor(color);
    }
}
